#include<iostream>
using namespace std;

const int N = 110;
int arr[N];

int main()
{
	int n; cin >> n;
	for (int i = 0; i < n; i++) cin >> arr[i];
	
	for (int i = 0; i < n; i++)
	{
		int count = 0;
		for (int j = 0; j < i; j++)
			if (arr[j] < arr[i]) count++;
		cout << count << " ";
	}
	
	return 0;
}
